<template>
	<view class="list">
		<view class="list__content">
			<view class="list__contentin">
				<navigator :url="'/pages/tabbar/study/details/index?id=' + item.id + '&type=3'" class="list__contentin-textBox"
				 hover-class="none" v-for="(item, index) in list" :key="item.id">
					<view class="list__contentin-textBox-text">{{ item.title }}</view>
					<view class="list__contentin-textBox-read">{{item.readVolume}} 已阅</view>
				</navigator>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		name: "statuteContent",
		props: {
			list: {
				type: Array,
				default: function() {
					return [];
				}
			}
		}
	}
</script>

<style lang="less">
	// 列表
	.list {

		&__content {
			background-color: #FFFFFF;
			border-radius: 10upx;
			box-shadow: 0 0 10px #eaeaea;
			margin: 10px auto;
			width: 93%;

			.list__contentin {
				overflow-y: scroll;
				padding-left: 20upx;
				background-color: #ffffff;
				padding-top: 10upx;

				&-textBox {
					padding: 20upx 0 10upx;
					display: flex;
					border-bottom: 1upx dashed #dddddd;

					&-text {
						font-size: 28upx;
						color: #333333;
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 1;
						flex: 0.8;
						margin-bottom: 16upx;
					}

					&-read {
						font-size: 20upx;
						margin-top: 8upx;
						color: #999999;
						margin-right: 20upx;
						flex: 0.3;
						text-align: right;
					}
				}

				&-text:last-child {
					margin-bottom: 0upx;
				}

				.list__contentin-textBox:last-child {
					border-bottom: 0;
				}

				/*.list__contentin:first-child {*/
				/*    padding-top: 0;*/
				/*}*/
			}
		}
	}
</style>
